package com.yx.config;

import com.lmax.disruptor.EventHandler;
import com.lmax.disruptor.WorkHandler;
import com.yx.vo.MessageModel;
import lombok.extern.slf4j.Slf4j;

/**
 * @author God.Jhon.Black
 * @date 2023-01-03
 */
@Slf4j
public class TwoEventHandler implements WorkHandler<MessageModel> {

    @Override
    public void onEvent(MessageModel messageModel){
        if (messageModel != null) {
            log.info("woEventHandler 处理数据:{} =========",messageModel.toString());
        }
    }
}
